﻿<?xml version="1.0"?>
<Grid x:Name="Det" 
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:sys="clr-namespace:System;assembly=mscorlib" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <DockPanel LastChildFill="True">
        <Image  DockPanel.Dock="Left"
                DataContext="{Binding FrontCoverDefault.Path}" 
                Source="{Binding Uri.AbsolutePath, IsAsync=True}" 
                MaxWidth="120" MaxHeight="120" 
                Stretch="Uniform"  />
        <StackPanel>
            <TextBlock 
                    Text="{Binding Title}" 
                    TextWrapping="Wrap"
                    FontWeight="Bold"
                    FontSize="14"
                    />
            <ItemsControl ItemsSource="{Binding Authors}" >
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <WrapPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" >
                            <TextBlock Text="{Binding FirstName}" />
                            <TextBlock Text=" "  />
                            <TextBlock Text="{Binding LastName}" />
                            <TextBlock Text="; "  />
                        </StackPanel>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </StackPanel>
    </DockPanel>
    
</Grid>
